import { defineStore } from 'pinia';
import type { getLocation } from '@/utils/models/getLocation';
export const LocaStore = defineStore('LocationStore', {
	persist: {
		enabled: true,
		strategies: [
			{
				key: 'UserStore',
				storage: window?.localStorage,
			},
		],
	},

	state: (): getLocation => ({
		location: {
			address: '北京',
			longitude: '',
			latitude: '',
			province: '重庆',
			city: '',
			area: '',
		},
	}),
});
